package com.star.message.repository.model;

import com.star.common.core.contract.BaseRepository;
import com.star.common.core.contract.Model;
import com.star.message.repository.service.UserEmailConfigRepository;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 邮件多语言配置(UserEmailConfig)表实体类
 *
 * @author 周恒哲
 * @since 2023-10-24 18:18:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
@Schema(description = "邮件多语言配置(UserEmailConfig)表实体类")
public class UserEmailConfigBO extends Model {
    /**
     * 主键ID（雪花算法）
     */
    @Schema(description = "主键ID")
    private String id;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 创建人编码
     */
    @Schema(description = "创建人编码")
    private String createBy;

    /**
     * 创建人编码
     */
    @Schema(description = "创建人")
    private String creator;

    /**
     * 创建人编码
     */
    @Schema(description = "更新人编码")
    private String updateBy;

    /**
     * 创建人编码
     */
    @Schema(description = "更新人")
    private String updater;
    /**
     * 租户ID
     */
    @Schema(description = "租户ID")
    private String tenantId;
    /**
     * 语言类型
     *
     * @see com.star.common.kit.contract.enums.language.RealLanguageTypeEnum
     */
    @Schema(description = "语言类型")
    private String languageCode;
    /**
     * 语言描述
     */
    @Schema(description = "语言描述")
    private String languageDesc;

    /*********下面三个是给content拼接参数用的************/
    /**
     * 发送邮件内容(HTML格式)
     */
    @Schema(description = "发送邮件内容(HTML格式)")
    private String content;
    /**
     * 域名url
     */
    @Schema(description = "域名url")
    private String domainUrl;
    /**
     * logo地址
     */
    @Schema(description = "logo地址")
    private String logoUrl;

    /*********************/

    /**
     * 个人姓名（别名）
     */
    @Schema(description = "个人签名")
    private String personal;
    /**
     * 发送方地址(发送人账号)
     */
    @Schema(description = "发送方地址")
    private String sendAddress;
    /**
     * 发送方密码
     */
    @Schema(description = "发送方密码")
    private String sendPassword;
    /**
     * 简单邮件传送协议服务器
     */
    @Schema(description = "简单邮件传送协议服务器")
    private String smtpHost;
    /**
     * 主题
     */
    @Schema(description = "主题")
    private String subject;
    /**
     * 状态
     *
     * @see com.star.common.core.contract.enums.StatusEnum
     */
    @Schema(description = "状态")
    private Integer status;

    public static UserEmailConfigRepository repository() {
        return BaseRepository.of(UserEmailConfigBO.class);
    }

}

